package com.lvyq.qrobot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lvyq.qrobot.entity.UserAttribute;
import com.lvyq.qrobot.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author lvyq
 * @version 1.0
 * Create by 2024-05-31 9:47
 */
@Mapper
public interface UserAttributeMapper extends BaseMapper<UserAttribute> {


    @Select("select * from user_attribute where group_id = #{groupId} and user_id =#{userId}")
    UserAttribute getUserAttributeInfo(@Param("groupId") Integer groupId,@Param("userId") Integer userId);
}
